import axios from '../axios'

// 登录
export const dologin = data => {
    return axios({
        url: 'login',
        method: 'post',
        data
    })
}

// 注册
export const doregister = data => {
    return axios({
        url: 'register',
        method: 'post',
        data
    })
}

export const postuserdata = data => {
    return axios({
        url: 'detailinfo',
        method: 'post',
        data
    })
}

export const getuserdata = () => {
    return axios({
        url: 'userdata',
        method: 'post',
    })
}

export const dogetdays = () => {
    return axios({
        url: 'days',
        method: 'post',
    })
}

export const dochkaccount = () => {
    return axios({
        url: 'chkaccount',
        method: 'post',
    })
}

// 检查是否存在detailinfo
export const dochkdetinfo = () => {
    return axios({
        url: 'havedetinfo',
        method: 'post',
    })
}

// 检查缺少哪些信息
export const dochkinfo = () => {
    return axios({
        url: 'haveconfigall',
        method: 'post',
    })
}

export const dotopup = data => {
    return axios({
        url: 'topup',
        method: 'post',
        data
    })
}

export const dobindaccount = data => {
    return axios({
        url: 'bindaccount',
        method: 'post',
        data
    })
}

export const dosendemail = data => {
    return axios({
        url: 'sendemail',
        method: 'post',
        data
    })
}

export const dobindemail = data => {
    return axios({
        url: 'chkemail',
        method: 'post',
        data
    })
}

export const dohavemail = data => {
    return axios({
        url: 'havemail',
        method: 'post',
        data
    })
}
export const dostart = () => {
    return axios({
        url: 'start',
        method: 'post',
    })
}

